import Cookies from 'js-cookie'

const isLogin = () => !!Cookies.get('token')
const getToken = () => Cookies.get('token')
const removeUserInfo = () => {
  Cookies.remove('token')
}

export {
  isLogin,
  getToken,
  removeUserInfo
}